package cn.koala.key.accounts.service.impl;

import cn.koala.key.accounts.service.AuthManageService;
import cn.koala.key.accounts.util.AuthFunAndModule;
import cn.koala.key.api.AuthApi;
import cn.koala.key.common.feign.FeignUtils;
import cn.koala.key.configure.apollo.ApolloKeyManagementAdminConfig;
import cn.seed.common.core.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限接口实现
 * @description
 * @author shuai.xu
 * @time 2019/6/27 11:00
*/
@Service
public class AuthManageServiceImpl implements AuthManageService {

	@Override
	public Result<Object> getAuthTreeByName(String systemCode, String userCode) {
		return FeignUtils.getHttpApi(AuthApi.class).getAuthTreeByName(systemCode, userCode);
	}

	@Override
	public Result<List<AuthFunAndModule>> getAuthBtnAuth(String systemCode, String userCode, String moduleId) {
		return FeignUtils.getHttpApi(AuthApi.class).getAuthBtnAuth(systemCode, userCode, moduleId);
	}

}
